package com.kaolafm.kradio.k_navi_map.location.factory;

import com.kaolafm.kradio.k_navi_map.R;
import com.kaolafm.kradio.k_navi_map.amap.AMapViewManager;
import com.kaolafm.kradio.k_navi_map.base.IMapViewManager;

/**
 * Created by kaolafm on 2018/4/15.
 */

public class MapViewFactory {

    private static MapViewFactory mapViewFactory;

    private AMapViewManager mMapViewManager;

    public static MapViewFactory getInstance(){
        if(mapViewFactory == null){
            mapViewFactory = new MapViewFactory();
        }
        return mapViewFactory;
    }

    public int initView(String type){
        mMapViewManager = new AMapViewManager();
        return R.layout.fragment_location_amap;
    }

    public IMapViewManager getMapViewManager(){
        return mMapViewManager;
    }
}
